﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebShopData
{
   public class Payment
    {
        public int PaymentID { get; set; }
        public string PaymentName { get; set; }
        public int PaymentCharge { get; set; }

        public Payment()
        { 
        }

        public Payment(string paymentName, int paymentCharge, int paymentId=0)
        {
            paymentName = PaymentName;
            PaymentCharge = paymentCharge;
            PaymentID = paymentId;
        }

        public override string ToString()
        {
            return string.Format("{0} {1} {2}", PaymentName, PaymentCharge, PaymentID);
        }
    }
}

